//
//  AuthorityUtils.h
//  SheMeasured
//
//  Created by ddkj on 2019/5/14.
//  Copyright © 2019 xmddkj. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSUInteger, VisitAuthorityType) {
    VisitAuthorityTypeAccept,
    VisitAuthorityTypeRefuse,
};

@interface AuthorityUtils : NSObject

/**
 相机访问权限

 @param result 授权结果
 */
+ (void)requestAuthorForCamera:(void(^)(VisitAuthorityType granted))result;

/**
 相册访问权限
 
 @param result 授权结果
 */
+ (void)requestAuthorForPhotoLibrary:(void(^)(VisitAuthorityType granted))result;

/**
 通讯录访问权限

 @param result 授权结果
 */
+ (void)requestAuthorForContact:(void(^)(VisitAuthorityType granted))result;

@end

NS_ASSUME_NONNULL_END
